<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Flex侧轴</title>

    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .father {
            width: 800px;
            height: 100px;
            background-color: #e15fad;
            border: 2px solid #000000;

            display: flex;
            align-items: stretch;
            /*align-items: center;*/
            /*align-items: flex-start;*/
            /*align-items: flex-end;*/
        }

        .father div {
            width: 50px;
            /*height: 50px;*/
            background-color: #e92121;
        }


        .father div:nth-child(2n){
            /*align-self: center;*/
        }
    </style>
</head>
<body>



<div class="father">
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
    <!--    <div>6</div>-->
    <!--    <div>7</div>-->
    <!--    <div>8</div>-->
    <!--    <div>9</div>-->
    <!--    <div>10</div>-->
</div>

</body>
</html>
